package com.ruoyi.business.VO;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * 分项估计VO
 * **/
@Data
@Getter
@Setter
public class DetailedAssessmentVO {

    @JsonProperty("message")
    private String message;

    @JsonProperty("result")
    private Result result;

    @Data
    @Getter
    @Setter
    public static class Result {

        @JsonProperty("advice")
        private String advice;

        @JsonProperty("age")
        private int age;

        @JsonProperty("ai_disease")
        private AiDisease ai_disease;

        @JsonProperty("some_data")
        private List<SomeData> some_data;

        @JsonProperty("lesion")
        private List<Integer> lesion;

        @JsonProperty("height")
        private String height;

        @JsonProperty("assessment")
        private String assessment;

        @JsonProperty("name")
        private String name;

        @JsonProperty("sexname")
        private String sexname;

        @JsonProperty("weight")
        private String weight;

        @JsonProperty("six")
        private Map<String, String> six;

        private List<Map<String, Object>> sixMap;


    }

    @Data
    @Getter
    @Setter
    public static class AiDisease {

        @JsonProperty("degree")
        private String degree;

        @JsonProperty("risk")
        private Double risk;

        @JsonProperty("chinapar")
        private Double chinapar;

        @JsonProperty("diabetes")
        private Double diabetes;

        @JsonProperty("fib")
        private Double fib;

        @JsonProperty("preclass")
        private Integer preclass;

        @JsonProperty("chinapar_advice")
        private String chinapar_advice;

        @JsonProperty("diabetes_advice")
        private String diabetes_advice;

        @JsonProperty("fib_advice")
        private String fib_advice;

    }

    @Data
    @Getter
    @Setter
    public static class SomeData {

        @JsonProperty("name")
        private String name;

        @JsonProperty("value")
        private String value;


    }


}




